package com.basic.business.order.controller;


import com.basic.business.order.domain.TOrdersDetail;
import com.basic.business.order.service.ITOrdersDetailService;
import com.basic.common.core.controller.BaseController;
import com.basic.common.core.page.TableDataInfo;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * 业务-订单明细Controller
 * 
 * @author zhaoxy_jn@163.com
 */
@RestController
@RequestMapping("/business/ordersDetail")
public class TOrdersDetailController extends BaseController
{
    @Resource
    private ITOrdersDetailService tOrdersDetailService;

    /**
     * 根据mainSid查询订单明细
     */
    @GetMapping("/getListByMainSid/{mainSid}")
    public TableDataInfo getListByMainSid(@PathVariable String mainSid)
    {
        return getDataTable(tOrdersDetailService.getList(new TOrdersDetail(mainSid)));
    }
}
